exports.init = function (app) {
  // 统计信息头部
  app.get("/net/schooladmin/school-order/get-count-info", function (req, res) {
    res.send({
      errcode: "0",
      errmsg: "ok",
      data: {
        schoolPaymentSkuNum: 2,
        todayTotalPayNum: 0,
        todayTotalPayAmount: 0,
        totalPayAmount: 0
      }
    });
  });

  // 统计信息tab
  app.get("/net/schooladmin/school-order/get-count-by-school-sku", function (req, res) {
    res.send({
      errcode: "0",
      errmsg: "ok",
      data: [{
        schoolPaymentSkuId: 2,
        schoolPaymentSkuName: 'xixi'
      },
      {
        schoolPaymentSkuId: 1,
        schoolPaymentSkuName: 'hhah'
      }
      ]
    });
  });

  // 统计信息具体
  app.post("/net/schooladmin/school-order/get-count-info-by-school-sku", function (req, res) {
    res.send({ "errcode": "0", "errmsg": "ok", "data": { "todayPayNum": 0, "todayPayAmount": 5, "todayPayClassNum": 0, "totalPayNum": 0, "totalPayAmount": 5, "totalPayclassNum": 0, "totalNoPayNum": 59, "totalNOPayAmount": 290, "totalNoPayclassNum": 6, "shouldPayClassNum": 6, "shouldPaystudentNum": 59 } });
  });

  // 社保首页
  // 统计缴费
  app.get("/net/socialadmin/social_statement/count", function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok",
      "data": {
        "todayPayNum": 0,
        "todayPayAmount": 0,
        "totalPayAmount": 0
      }
    });
  });

  // 统计近七天缴费
  app.get("/net/socialadmin/social_statement/count-recent", function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok",
      "data": [
        {
          "payAmount": 10,
          "time": 1513094400
        },
        {
          "payAmount": 40,
          "time": 1513180800
        },
        {
          "payAmount": 30,
          "time": 1513267200
        },
        {
          "payAmount": 40,
          "time": 1513353600
        },
        {
          "payAmount": 90,
          "time": 1513440000
        },
        {
          "payAmount": 20,
          "time": 1513526400
        },
        {
          "payAmount": 52,
          "time": 1513612800
        }
      ]
    });
  });
};
